package com.haha.prictice;
//：在控制台输出1-10000，计算这段代码执行了多少毫秒
public class SystemDemo {
    public static void main(String[] args) {
        long l = System.currentTimeMillis();
        for (int i = 1; i <=1000 ; i++) {
            System.out.println(i);
            
        }
        long l1 = System.currentTimeMillis();

        System.out.println(l1-l);
    }

}
